import request from '@/utils/request'

// 查询教育教学改革课题情况列表
export function listProjects(query) {
  return request({
    url: '/projects/projects/list',
    method: 'get',
    params: query
  })
}

// 查询教育教学改革课题情况详细
export function getProjects(erpId) {
  return request({
    url: '/projects/projects/' + erpId,
    method: 'get'
  })
}

// 新增教育教学改革课题情况
export function addProjects(data) {
  return request({
    url: '/projects/projects',
    method: 'post',
    data: data
  })
}

// 修改教育教学改革课题情况
export function updateProjects(data) {
  return request({
    url: '/projects/projects',
    method: 'put',
    data: data
  })
}

// 删除教育教学改革课题情况
export function delProjects(erpId) {
  return request({
    url: '/projects/projects/' + erpId,
    method: 'delete'
  })
}
